<?php
  if(isset($subjects)) {
     foreach ($subjects as $value) {
		echo '<li>';
			echo '<div class="name_cal">'. $value['Subject']['name'] . '</div>';
			// 2013-02-26: Pham Vien fixed bug: Frontpage_Register_EF.docx - 4
			// echo '<div class="code">'. $value['Subject']['code'] . '</div>';
			// setlocale(LC_MONETARY, "vi_VN");
			$fee = number_format($value['Subject']['cost']);
			echo '<div class="fees">'. $fee . '</div>';	
			echo '<div id="clearone"></div>';		
		echo '</li>';
	 }
    // echo $javascript->object($subjects);
  }
?>